package com.service.impl;

import com.dao.ServiceListDao;
import com.pojo.ServiceItem;
import com.service.ServiceListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ServiceListServiceImpl implements ServiceListService {
    @Autowired
    private ServiceListDao serviceListDao;
    @Override
    public List<ServiceItem> findByTypeandCid(String type, Integer cid) {

        return serviceListDao.findByTypeandCid(type,cid);
    }

    @Override
    public List<ServiceItem> goodsFindAll(Integer cid) {

        return serviceListDao.goodsFindAll(cid);
    }
}
